.fm-timeline {
    overflow: hidden;
}

.timeline-item {
    display: flex;
    position: relative;
}

.timeline-item:nth-of-type(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-of-type(odd) > div:first-of-type {
    text-align: right;
}

.timeline-item:nth-of-type(odd) .item-image {
    align-items: flex-start;
}

.timeline-item:nth-of-type(even) > div:last-of-type img {
    margin: 0 0 0 auto;
}

.timeline-item > div {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-item > div:first-of-type {
    background-color: #000;
    margin: auto;
    opacity: 0;
    position: relative;
    padding: 40px 20px;
    left: -200px;
    top: 0;
    width: calc(100% / 2 - 6px);
}

.timeline-item > div:last-of-type {
    margin: auto;
    opacity: 0;
    position: relative;
    padding: 40px 20px;
    right: -200px;
    top: 0;
    width: calc(100% / 2 - 6px);
}

.timeline-item:nth-of-type(even) > div:first-of-type {
    background-color: #000;
    left: unset;
    margin: auto;
    opacity: 0;
    position: relative;
    padding: 40px 20px;
    right: -200px;
    top: 0;
    width: calc(100% / 2 - 6px);
}

.timeline-item:nth-of-type(even) > div:last-of-type {
    margin: auto;
    opacity: 0;
    position: relative;
    padding: 40px 20px;
    left: -200px;
    top: 0;
    width: calc(100% / 2 - 6px);
}

.timeline-item .item-content p {
    margin: 0;
}

.timeline-item .divider {
    width: 12px;
    z-index: 1;
}

.timeline-item .item-image {
    padding: 40px 20px;
    width: calc(100% / 2 - 6px);
    opacity: 0;
}

.timeline-item .item-image img {
    max-width: 100%;
}

.timeline-item .divider::before {
    content: "";
    border-radius: 50%;
    border: 2px solid #e40023;
    height: 16px;
    width: 16px;
    position: absolute;
    left: 50%;
    background: white;
    top: 50%;
    transform: translate(-50%, -50%);
}

.timeline-item .divider::after {
    content: "";
    height: 100%;
    width: 2px;
    position: absolute;
    left: 50%;
    background: #e40023;
    transform: translateX(-50%);
    z-index: -1;
}

@media screen and (max-width: 767px) {

    .timeline-item {
        flex-direction: column;
        padding: 0 0 50px 20px;
    }

    .timeline-item::before {
        content: "";
        border-radius: 50%;
        border: 2px solid #e40023;
        height: 16px;
        width: 16px;
        position: absolute;
        left: -7px;
        background: white;
        top: 20px;
    }

    .timeline-item::after {
        content: "";
        height: 100%;
        width: 2px;
        position: absolute;
        left: 0;
        background: #e40023;
        z-index: -1;
    }

    .timeline-item:nth-of-type(even) {
        flex-direction: column;
    }

    .timeline-item:nth-of-type(odd) > div:first-of-type {
        text-align: left;
    }

    .timeline-item:nth-of-type(even) > div:last-of-type img {
        margin: 0;
    }

    .timeline-item .item-content {
        padding: 0 0 10px;
        width: 100%;
    }

    .timeline-item .item-image {
        align-items: baseline;
        padding: 0;
        width: 100%;
    }

    .timeline-item .divider {
        display: none;
    }
}